package com.leen.video.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * Sm.Ms图床
 * </p>
 *
 * @author yy
 * @since 2021-05-19
 */
@Getter
@Setter
@Entity
@Table(name = "picture")
@ApiModel(value="Picture对象", description="Sm.Ms图床")
public class Picture implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    private Long id;

    @ApiModelProperty(value = "上传日期")
    @Column(name = "create_time")
    private Date createTime;

    @ApiModelProperty(value = "删除的URL")
    @Column(name = "delete_url")
    private String deleteUrl;

    @ApiModelProperty(value = "图片名称")
    @Column(name = "filename")
    private String filename;

    @ApiModelProperty(value = "图片高度")
    @Column(name = "height")
    private String height;

    @ApiModelProperty(value = "图片大小")
    @Column(name = "size")
    private String size;

    @ApiModelProperty(value = "图片地址")
    @Column(name = "url")
    private String url;

    @ApiModelProperty(value = "用户名称")
    @Column(name = "username")
    private String username;

    @ApiModelProperty(value = "图片宽度")
    @Column(name = "width")
    private String width;

    @ApiModelProperty(value = "文件的MD5值")
    @Column(name = "md5code")
    private String md5code;


}
